package cn.yudao;

import lombok.Data;

//全局异常
@Data
public class GlobleException extends RuntimeException{

    /**--------------------------------------------------------
     传一个错误信息给异常对象
     --------------------------------------------------------**/
    String code;


    public GlobleException(String message,String code){
        super(message);
        this.code = code;
    }

    public GlobleException(String message){
        super(message);
    }
}